import request from '@/utils/request'
import da from "element-ui/src/locale/lang/da";
import log from "../../views/monitor/job/log";

//查询我的工单
export function selectMyOrder(data) {
  console.log(data)
  return request({
    url: '/work/myorder',
    method: 'post',
    data: data,
  })
}

//通过工单编号删除一个工单
export function delOrder(data) {

  return request({
    url: '/work/deleteOrder'+'/'+data,
    method: 'get',
  })
}

//通过订单号查询详情页
export function details(data){
  console.log(data);
  return request({
    url : '/work/find/order'+'/'+data,
    method : 'post',
  })
}
//查询质检页面工单列表
export function selectQualitied(query){
  
  return request({
    url : '/work/findQualitiedOrder',
    method : 'get',
    params: query
  })
}
//查询工单id获取工单信息
export function selectRepairById(id){
  
  return request({
    url : '/work/findRepairById/'+id,
    method : 'get'
  })
}

//查询工单列表页面
export function selectRepairList(query){
  
  return request({
    url : '/work/findListOrder',
    method : 'get',
    params: query
  })
}
